home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14596 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.compulink.com!not-for-mail
  2. Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.win32
  3. From: jfischer@idirect.com (Jonathan Fischer)
  4. Subject: Re: VC++ 4.0 memory allocation slower than in 2.x!!!
  5. Message-ID: <Edda1996Mar31.223125.15938@news.compulink.com>
  6. Date: 1 Apr 96 03:31:25 GMT
  7. References: <alanDozpsy.Kn6@netcom.com>
  8. X-Newsreader: Forte Free Agent 1.0.82
  9. X-Nntp-Posting-Host: doom.idirect.com
  10.  
  11. alan@netcom.com (Robert Alan Wright) wrote:
  12.  
  13. >Upon further profiling and other exploration, I found out the problem:
  14. >THE VC++ 4.0 MEMORY ALLOCATION ROUTINES ARE WAY SLOWER!!!
  15.  
  16. >I don't understand how this can be, but I switched from using the
  17. >Microsoft malloc/realloc routines to my own versions, and now I
  18. >get about the same performance from the app that I used to.
  19. >As best I can tell, the new realloc routine is about 10 TIMES SLOWER
  20. >...
  21.  
  22. Were you comparing the release version or the debug version of the
  23. library?  Their debug code does an awful lot of (quite useful) runtime
  24. debugging, such as boundary checking in the malloc code.  
  25.  
  26. --
  27. Jonathan Fischer            Toronto, Ontario, Canada
  28. jfischer@idirect.com
  29.  
  30.